<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link rel="stylesheet" type="text/css" href="/static/easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/easyui/themes/icon.css">
    <script type="text/javascript" src="/static/easyui/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/easyui/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/easyui/js/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/common.css">
    <script type="text/javascript" src="/static/js/DateUtil.js"></script>

    <script type="text/javascript">
        //        $(function () {
        //            $('#dlg').dialog('open').dialog('center').dialog('setTitle', '用户登录');
        //        });
        function login() {
            $('#fm').submit();
        }
    </script>
</head>
<body>
<div id="dlg" class="easyui-dialog" style="width:400px;height:280px;padding:10px 20px" closed="false"
     buttons="#dlg-buttons">
    <form id="fm" method="post" action="/login" novalidate>
        <table>
            <tr>
                <td>登录名:</td>
                <td><input name="username" class="easyui-validatebox" required="true" type="text"/></td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><input name="password" class="easyui-validatebox" required="true" type="text"/></td>
            </tr>
        </table>
    </form>
</div>
<div id="dlg-buttons">
    <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="login()">Login</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#dlg').dialog('close')">Cancel</a>
</div>
</body>
</html>